﻿<%@ Page Language="C#"  EnableEventValidation="false" AutoEventWireup="true" CodeBehind="SalesmanList.aspx.cs" Inherits="UI.ModSalesman.SalesmanList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>促销员列表</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            促销员列表</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="70px"></asp:TextBox>
         
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="2"></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="3"></asp:TextBox>
                <asp:DropDownList ID="ddlStateName" runat="server" CssClass="InputCss" 
                    TabIndex="4">
                    <asp:ListItem>全部</asp:ListItem>
                    <asp:ListItem>在职</asp:ListItem>
                    <asp:ListItem>离职</asp:ListItem>
                </asp:DropDownList>
                  <asp:DropDownList ID="ddlTimeType" runat="server" CssClass="InputCss">
                        <asp:ListItem Value="InputTime">录入时间</asp:ListItem>
                        <asp:ListItem Value="JoinTime">入职时间</asp:ListItem>  
                        <asp:ListItem Value="InTime">入场时间</asp:ListItem>                          
                        <asp:ListItem Value="OutTime">离场时间</asp:ListItem>     
                         <asp:ListItem Value="DayNum">移交时间</asp:ListItem>       
                          <asp:ListItem Value="BackAmountTime">退款时间</asp:ListItem>                       
                    </asp:DropDownList>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" TabIndex="5" />           
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                OnClick="btnExcel_Click" TabIndex="7" />
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" 
                TabIndex="8" />
          
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="SaleManID" Width="1150" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" 
        OnRowDataBound="gvList_RowDataBound" ViewStateMode="Disabled">
        <Columns>
            <asp:TemplateField  HeaderText="操作" ItemStyle-HorizontalAlign="Center" ItemStyle-ForeColor="BlueViolet">
                <ItemTemplate>                    
                       <a href="javascript:ShowLink('InAdd.aspx?SaleManID=<%# Eval("SaleManID")%>',880,550)">进</a><a href="javascript:ShowLink('ChangeAdd.aspx?SaleManID=<%# Eval("SaleManID")%>',880,550)">变</a><a href="javascript:ShowLink('RewardsAdd.aspx?SaleManID=<%# Eval("SaleManID")%>',880,550)">奖</a><a href="javascript:ShowLink('LeaveAdd.aspx?SaleManID=<%# Eval("SaleManID")%>',880,550)">退</a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="100px" />
            </asp:TemplateField>
            <asp:BoundField DataField="DeptName" HeaderText="部门" SortExpression="DeptName">
                <ItemStyle Width="75px" />
            </asp:BoundField>
                 <asp:TemplateField HeaderText="姓名">
                <ItemTemplate>
                    <a href="javascript:ShowLink('SalemanShowDetail.aspx?EmpCode=<%# Eval("EmpCode")%>&SaleManID=<%# Eval("SaleManID")%>',880,600)">
                        <%#Eval("EmpName")%>
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="60px" />
            </asp:TemplateField>
                 <asp:TemplateField HeaderText="工号">
                <ItemTemplate>
                    <a href="javascript:ShowLink('SalemanShowDetail.aspx?EmpCode=<%# Eval("EmpCode")%>&SaleManID=<%# Eval("SaleManID")%>',880,600)">
                        <%#Eval("EmpCode")%>
                    </a>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </asp:TemplateField>
            
            <asp:BoundField DataField="EmpSex" HeaderText="性别" SortExpression="EmpSex">
                <ItemStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="DutyName" HeaderText="品牌" SortExpression="DutyName">
                <ItemStyle Width="70px" />
            </asp:BoundField>
             <asp:BoundField DataField="InTime" HeaderText="入职时间" DataFormatString="{0:d}" SortExpression="InTime">
                <ItemStyle Width="75px" />
            </asp:BoundField>
        
                <asp:BoundField DataField="TypeName" HeaderText="类别" SortExpression="TypeName">
                <ItemStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="StateName" HeaderText="状态" SortExpression="StateName">
                <ItemStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="SecurityAmount" HeaderText="保证金" SortExpression="SecurityAmount">
                <ItemStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="ManageAmount" HeaderText="管理费" SortExpression="ManageAmount">
                <ItemStyle Width="60px" />
            </asp:BoundField>
                <asp:BoundField DataField="JoinTime" HeaderText="入场时间" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="75px" />
            </asp:BoundField>
            <asp:BoundField DataField="OutTime" HeaderText="离场时间" DataFormatString="{0:d}" SortExpression="OutTime">
                <ItemStyle Width="75px" />
            </asp:BoundField>
             <asp:BoundField DataField="DayNum" HeaderText="移交日期" SortExpression="DayNum">
                <ItemStyle Width="75px" />
            </asp:BoundField>
             <asp:BoundField DataField="BackAmountTime" HeaderText="退款日期" DataFormatString="{0:d}" SortExpression="BackAmountTime">
                <ItemStyle Width="75px" />
            </asp:BoundField>
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="150px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
        <div id="divAmount" class="amountLine">
        共有记录数:<asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
